package com.ydj.app.protocol.http.cms;

import com.ydj.app.enumerate.MemberLevelEnum;
import com.ydj.framework.mysql.PageArgs;
import com.ydj.framework.protocol.JsonPageResponse;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.Date;

@Getter
@Setter
@Accessors(chain = true)
public class CmsWebUserListRes extends JsonPageResponse<CmsWebUserListRes.CmsWebUserListResItem> {

    public CmsWebUserListRes(PageArgs pageArgs) {
        super(pageArgs);
    }

    @Getter
    @Setter
    @Accessors(chain = true)
    public static class CmsWebUserListResItem {
        @ApiModelProperty(value = "ID", required = true)
        private Long id;

        @ApiModelProperty(value = "手机号/邮箱", required = true)
        private String nickName;

        @ApiModelProperty(value = "是否绑定微信")
        private Boolean bindWeChat;

        @ApiModelProperty(value = "用户属性")
        private MemberLevelEnum memberLevel;

        @ApiModelProperty(value = "期限", required = true)
        private Date expireTime;

        @ApiModelProperty(value = "备注", required = true)
        private String remark;

    }

}